{{#extends @html/widget/hp/widget.html}}

{{:widget_class}}wg-files wg-new-files{{/:widget_class}}

{{:widget_body}}
	{{!connect "decoration/widget/widgets/wg-new-files.css"}}
	{{?widget.content.items}}

	<table class="table-files-" cellspacing="0">
		{{!for widget.content.items do=@:files_item}}{{:files_item}}
		<tr>
			<td class="table-title-"><img src="{{!static type='images' 'tmp/files/pic1.gif'}}" width="16" height="16" alt="" /><a href="{{*file_url}}" title="{{*file_meta.real_fname}}">{{*file_meta.real_fname | truncate 19}}</a><span>{{*file_meta.file_size|formatfilesize}}</span></td>
			<td class="table-added-"><span class="date- new-date-">{{*file.date | date iformat="%Y-%m-%d %H:%i:%s" oformat="%d.%m.%y"}}</span><span class="time-">{{*file.date | date iformat="%Y-%m-%d %H:%i:%s" oformat="%H:%i"}}</span></td>
		</tr>
		{{/:files_item}}
	</table>

	<!--a class="all-files-" href="">Все файлы</a-->

	{{?:}}
		<div class="typography"><p>Файлов пока нет</p></div>
	{{/?}}
{{/:widget_body}}
